#include "headfiles.h"

using namespace std;

int main(int argc, char **argv) {
    if (argc != 2) {
        cout << "Usage: " << argv[0] << " string" << endl;
        return 0;
    }

    string str(argv[1]);

    int max_len, start, end;
    max_len = longestNoRepitition(str, start, end);

    cout << "Max len is: " << max_len << endl;
    cout << "Start loc: " << start <<", ";
    cout << "end loc:" << end << endl;

    return 0;
}
